package com.abing.singleton.v2;

public class SingletonV2Test {


    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            new Thread(new Runnable() {
                public void run() {
                    SingletonV2 singletonV1 = SingletonV2.getSingletonV2();
                    System.out.println(Thread.currentThread().getName() + "," + singletonV1);
                }
            }).start();
        }
    }
}
